package com.zjxmyq.authorization.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.zjxmyq.authorization.domain.BaseDomain;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.*;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("xm_user")
@Table(name="xm_user",comment = "用戶表")
public class User extends BaseDomain{

    @TableId(type = IdType.AUTO)//mybatis-plus主键注解
    @Column(comment = "用户id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    private int id;
    @Column(comment = "用户姓名",type = MySqlTypeConstant.VARCHAR,length = 32)
    private String name;
    @Column(comment = "密码",type = MySqlTypeConstant.VARCHAR,length = 64)
    private String password;
    @Column(comment = "性别",type = MySqlTypeConstant.VARCHAR,length = 8)
    private String sex;
    @Column(comment = "联系电话",type = MySqlTypeConstant.VARCHAR,length = 16)
    private String telNumber;
}
